package com.be.beadmin.quality.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description: 检验单
 * @author: Jiaming Zheng
 * @Date: Create in 0:05 2023/5/26
 * @Modified By:
 **/
@Data
@Entity
@Table(name = "T_QM_InspectionTask")
public class InspectionTask extends BaseEntity {

    @Column(name = "ProductQualityId", columnDefinition = "VARCHAR(50) COMMENT '入厂检验Id' ")
    private String productQualityId;

    @Column(name = "InspectionTemplateId", columnDefinition = "VARCHAR(50) COMMENT '检验表模板Id' ")
    private String inspectionTemplateId;

    @Column(name = "Type", columnDefinition = "VARCHAR(50) COMMENT '检验任务类型' ")
    private String type;

    @Column(name = "TemplateName", columnDefinition = "VARCHAR(50) COMMENT '模板名称' ")
    private String templateName;

    @Column(name = "ProcessId", columnDefinition = "VARCHAR(50) COMMENT '工序Id' ")
    private String processId;


    @Column(name = "BatchPlanId", columnDefinition = "VARCHAR(50) COMMENT '批次计划Id' ")
    private String batchPlanId;
    @Column(name = "ProjectCode", columnDefinition = "VARCHAR(50) COMMENT '项目编号' ")
    private String projectCode;

    @Column(name = "InfoId", columnDefinition = "VARCHAR(50) COMMENT '项目ID' ")
    private String infoId;

    @Column(name = "ProjectName", columnDefinition = "VARCHAR(50) COMMENT '项目名称' ")
    private String projectName;

    @Column(name = "Wo", columnDefinition = "VARCHAR(50) COMMENT '工单编号' ")
    private String wo;


    @Column(name = "BatchProductCode", columnDefinition = "VARCHAR(50) COMMENT '柜体编号' ")
    private String batchProductCode;


    @Column(name = "CurrentBatch", columnDefinition = "int COMMENT '当前批次' ")
    private Integer currentBatch;

    @Column(name = "BatchCount", columnDefinition = "int COMMENT '批次总数' ")
    private Integer batchCount;
    /**
     * 0 - 未提交
     * 1 - 已完成
     */
    @Column(name = "State", columnDefinition = "int COMMENT '任务状态' ")
    private int state;

    @Column(name = "Inspection", columnDefinition = "int COMMENT '检验结果-1 不合格/1 合格/2 让步接收' ")
    private int inspection;

    @Column(name = "Finisher", columnDefinition = "VARCHAR(50) COMMENT '完成人员' ")
    private String finisher;

    @Column(name = "Inspector", columnDefinition = "VARCHAR(50) COMMENT '检验员' ")
    private String inspector;

    @Column(name = "Memo", columnDefinition = "text COMMENT '备注' ")
    private String memo;

    @Column(name = "FinishedTime", columnDefinition = "datetime COMMENT '完成时间' ")
    private Date finishedTime;

    @Column(name = "InspectTime", columnDefinition = "datetime COMMENT '检验时间' ")
    private Date inspectTime;
}
